package stu.sup.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stu.sup.entity.MerchantsInfo;
import stu.sup.mapper.MerchantsInfoMapper;
import stu.sup.service.IMerchantsInfoService;

/**
 * 本类用来演示：
 *
 * @author:Administrator
 * @data:2020/6/27 0027
 */
@Service
@Transactional
public class MerchantsInfoServiceImpl implements IMerchantsInfoService {
    @Autowired
    private MerchantsInfoMapper merchantsInfoMapper;

    @Override
    public int save(MerchantsInfo merchantsInfo) {
        return merchantsInfoMapper.insert(merchantsInfo);
    }

    @Override
    public int updateByPrimaryKeySelective(MerchantsInfo merchantsInfo) {
        return merchantsInfoMapper.updateByPrimaryKeySelective(merchantsInfo);
    }

    @Override
    public MerchantsInfo findByMerchantsId(Integer mercantsId) {

        return merchantsInfoMapper.findByMerchantsId(mercantsId);
    }
}
